package fi.jamk.ourcookingapp.backend.model;

import java.io.Serializable;

/**
 * This is a rating for a receipt
 * @author Marius
 */
public class Rating implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private Receipt receipt;
	
	private double amount;

	private User user;

	private int ID;
	
	public int getID() {
		return ID;
	}
	
	public void setID(int iD) {
		ID = iD;
	}
	
	public Receipt getRecipt() {
		return receipt;
	}
	
	public void setRecipt(Receipt recipt) {
		this.receipt = recipt;
	}
	
	public double getAmount() {
		return amount;
	}
	
	public void setAmount(double amount) {
		this.amount = amount;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	public User getUser(){
		return user;
	}
	

}